/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.web.portlet.bean;

import com.genia.toolbox.basics.exception.technical.TechnicalIOException;

/**
 * This interface is used to provide sub-portlets to the portlets containers.
 */
public interface PortletView
{

  /**
   * getter for the bytes property.
   * 
   * @return the bytes
   */
  public byte[] getBytes();



  /**
   * getter for the content of the portlet as a <code>String</code>.
   * 
   * @return the content of the portlet as a <code>String</code>
   * @throws TechnicalIOException
   *           if an exception occurred
   */
  public String getText()
      throws TechnicalIOException;



  /**
   * getter for the characterEncoding property.
   * 
   * @return the characterEncoding
   */
  public String getCharacterEncoding();



  /**
   * getter for the identifier property.
   * 
   * @return the identifier
   */
  public String getIdentifier();



  /**
   * setter for the bytes property.
   * 
   * @param bytes
   *          the bytes to set
   */
  public void setBytes(byte[] bytes);



  /**
   * setter for the characterEncoding property.
   * 
   * @param characterEncoding
   *          the characterEncoding to set
   */
  public void setCharacterEncoding(String characterEncoding);



  /**
   * setter for the identifier property.
   * 
   * @param identifier
   *          the identifier to set
   */
  public void setIdentifier(String identifier);
}
